package cn.edu.nyist.controller;

import cn.edu.nyist.entity.Brand;
import cn.edu.nyist.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author mumucgq
 * @create 2019-12-03 19:57
 */
@RestController
@RequestMapping("/brand")
public class BrandController {

    @Autowired
    private BrandService brandService;

    @RequestMapping("/getAllList")
    public List<Brand> getAllList(){
        return brandService.getAllBrandList();
    }
}
